﻿<UserControl x:Class="GIMS.GUI.ArgumentControls.ColorArgumentControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:colorPicker="clr-namespace:ColorPicker;assembly=ColorPicker"
             MinHeight="120" MinWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Column="0" VerticalAlignment="Center" Margin="3">Color:</TextBlock>

        <colorPicker:ColorPicker Grid.Column="1"
              x:Name="ColorPicker"
              SelectedColor="{Binding Path=ControlColor, Mode=TwoWay}"
              Padding="5"
              HorizontalAlignment="Center" VerticalAlignment="Center"/>
        
        <Button Grid.Column="1" Grid.Row="2" MinHeight="23"
                VerticalAlignment="Top" Command="{Binding Path=ApplyCommand}">Apply</Button>

    </Grid>
</UserControl>
